#!/bin/bash
source /home/shell/util.sh

base_dir=`cd ${r'$'}(dirname ${r'$'}0); pwd -P`;
printInfo "代码目录：${r'$'}base_dir"
# git -C ${r'$'}base_dir reset --hard HEAD
git -C ${r'$'}base_dir pull

rm -rf ~/.m2/repository/com/system/commons/system-lang/*

mvn clean package -Dmaven.test.skip=true -f ${r'$'}base_dir

bash /home/shell/build/run-java-server.sh --name ${artifactId} --version 1.0 --env test --mode standalone --basedir ${r'$'}base_dir/${artifactId}-assemble/target/